const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
    devServer: {
    proxy: {
      '/': {
        target: 'http://localhost:8099',
      	 pathRewrite:{'^/':''},
	      ws: false,//用于支持websocket
	      secure: false,
        changeOrigin: true	//用于控制请求头中的host值
      }
    },
    proxy: {
      '/myapp': {
        target: 'http://192.168.88.130:8080',
      	pathRewrite:{'^/':''},
	      ws: false,//用于支持websocket
	      secure: false,
        changeOrigin: true	//用于控制请求头中的host值
      }
    }
  }
})
